import request from '@/utils/request'
export function getClue(data){
    return request({
        url: 'tienchin/clue/list',
        method: 'get',
        params: data
    })
}

export function getCluechannels(data){
    return request({
        url: 'tienchin/clue/channels',
        method: 'get',
        params: data
    })
}

export function getClueSummary(data){
    return request({
        url: 'tienchin/clue/summary/'+data,
        method: 'get',
    })
}

export function getClueActivity(data){
    return request({
        url: 'tienchin/clue/activity/'+data,
        method: 'get',

    })
}

export function addClue(data){
    return request({
        url: 'tienchin/clue',
        method: 'post',
        data: data
    })
}

export function updateClue(data){
    return request({
        url: 'tienchin/clue',
        method: 'put',
        data: data
    })
}
export function deleteClue(data){
    return request({
        url: 'tienchin/clue/'+data,
        method: 'delete',
    })
}

export function exportClue(data){
    return request({
        url: 'tienchin/course/export',
        method: 'post',
        data: data
    })
}

export function getDeptTree(data){
    return request({
        url: 'system/dept/treeselect',
        method: 'get',
        params: data
    })
}

export function getUsersData(data){
    return request({
        url: 'tienchin/clue/users/'+data,
        method: 'get',

    })
}

export function assignClue(data){
    return request({
        url: 'tienchin/assignment',
        method: 'post',
        data: data
    })
}